<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播图</title>

    <style>
        .tm {
            width: 520px;
            height: 280px;
            margin: auto;
            position: relative;
        }

        .left {
            position: absolute;
            left: 0;
            top: 50%;
            margin-top: -18px;
        }

        .right {
            position: absolute;
            right: 0;
            top: 50%;
            margin-top: -18px;
        }

        .show {
            width: 60px;
            height: 10px;
            background-color: rgb(218, 208, 208);
            border-radius: 5px;
            position: absolute;
            left: 50%;
            margin-left: -30px;
            bottom: 10px;
            text-align: center;
        }

        .show span {
            display: inline-block;
            width: 6px;
            height: 6px;
            margin: 0 1px 10px;
            border-radius: 50%;
            background-color: white;
        }

        span:hover {
            background-color: red;
        }
    </style>
</head>

<body>
    <div class="tm">
        <img src="./img/tb.jpg" alt="加载图片失败">
        <img class="left" src="./img/left.png" alt="加载图片失败">
        <img class="right" src="./img/right.png" alt="加载图片失败">
        <div class="show">
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
        </div>
    </div>
</body>

</html>